package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.PaperRule;
import com.ftg.product.exam.entity.BaseSubject;
import com.ftg.product.exam.entity.SysEmployee;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 试卷规则表，用来记录生成的试卷相应的规则表，如，总分多少，答题记时，每种类型题共有多少，答题人等信息（某班级|或者任意学生） DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class PaperRuleDTO extends PaperRule  {
    private static final long serialVersionUID = -790391930810207452L;

    /**
    * 关联字段 BaseSubject.subname
    */
    @BindQuery(comparison = Comparison.EQ, entity = BaseSubject.class, field = "subname", condition = "this.subcode=id")
    private String subcodeSubname;
    /**
    * 关联字段 SysEmployee.empname
    */
    @BindQuery(comparison = Comparison.EQ, entity = SysEmployee.class, field = "empname", condition = "this.empcode=id")
    private String empcodeEmpname;
}